#ifndef ENGINE_H
#define ENGINE_H
#include "main.h"

#include "Image.h"
#include "GameObject.h"
#include "Player.h"

#include "Settings.h"

#include "common/Math.h"
//#include <fstream>



namespace jfw
{
    class Engine
    {
        public:
            Engine();

            //bool LoadSettings(std::string m_sFilename);
            //bool Open();

            bool Open(int iWidth, int iHeight, int iBits, const char* sTitle, float m_fTimeStep);
            bool Run();

            void Close();
            virtual ~Engine();

            sf::RenderWindow* pApp;

        protected:
        private:
            bool Update(float m_fDeltaTime);
            void Draw();
            void LoadContent();
            void UnloadContent();

            sf::Event Event;

            float fTimeStep;

            jfw::Settings Settings;
            //sf::Vector2<int> WindowSize;
            /******************/
            sf::Image image;
            sf::Sprite test;
            /*****************/

            //std::map<std::string,std::string> Settings;
    };
}
extern jfw::Engine* pEngine;
#endif // ENGINE_H
